package animalParadise;

/*
 * 猫类（子类）
 */

public class Cat extends Animal implements Terrestrial {
	private int legNum; //猫腿的条数
	
	public Cat(){
		
	}
	
	public Cat(String name,int legNum){
		super(name);
		this.legNum = legNum;
	}

	public void setLegNum(int legNum) {
		this.legNum = legNum;
	}

	@Override
	// 获得猫腿的条数
	public int getLegNum() {
		return legNum;
	}

	@Override
	// 猫叫
	public String shout() {
		return "喵喵喵";
	}
}
